package com.itheima.day01.ZuoYe.ZuoYe3_4;

public class Taxi extends Car{
    private String company;
    public Taxi() {}
    public Taxi(String company) {
        this.company = company;
    }
    public String getCompany() {
        return company;
    }
    public void setCompany(String company) {
        this.company = company;
    }
    @Override
    public void end(){
        System.out.println("已经到达目的地~");
    }
}

